<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class EdImpArg</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> EdImpArg</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Class EdImpArg.php</p>
<p class="description"><p>Class that manages editions made to improved arguments in the stage of fundamentation</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Jose Oliveira &lt;<a href="mailto:jafo@ua.pt">jafo@ua.pt</a>&gt; 2012</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_serverResources---includes---classes---EdImpArg.php.html">/serverResources/includes/classes/EdImpArg.php</a> (line <span class="field">10</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">EdImpArg</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$newImpArg</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$argType</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$origImpArgID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#edArgInfo" title="details" class="method-name">edArgInfo</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$origArgID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getArgByID" title="details" class="method-name">getArgByID</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$edImpArgID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#getArgType" title="details" class="method-name">getArgType</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$argID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#IDAndSource" title="details" class="method-name">IDAndSource</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$origImpArgID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#saveNewArg" title="details" class="method-name">saveNewArg</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#showPreviousVersionsOfArg" title="details" class="method-name">showPreviousVersionsOfArg</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$origImpArgID</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#unsetArg" title="details" class="method-name">unsetArg</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$origArgID</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">24</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">EdImpArg</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$newImpArg</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$argType</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$origImpArgID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$newImpArg</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$argType</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$origImpArgID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodedArgInfo" id="edArgInfo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">edArgInfo</span> (line <span class="line-number">332</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns info about the original improved argument</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			edArgInfo
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$origArgID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$origArgID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetArgByID" id="getArgByID"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getArgByID</span> (line <span class="line-number">167</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns an improved arg through the respective ID</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getArgByID
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$edImpArgID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$edImpArgID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetArgType" id="getArgType"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getArgType</span> (line <span class="line-number">195</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that gets an improved argument ID and returns the respective tipology</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getArgType
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$argID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$argID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodIDAndSource" id="IDAndSource"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">IDAndSource</span> (line <span class="line-number">88</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">When an argument of an group is edited, if already are associations made with</p>
<p class="description"><p>this argument, then we need to change the &quot;obsolete&quot; ID in the associations table  for the new ID  It's received with the instance of the new ID, to determine whether the associations  table element saved comes from that table;  The method returns an array with the respective ID and elemSource</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			IDAndSource
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$origImpArgID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$origImpArgID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsaveNewArg" id="saveNewArg"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">saveNewArg</span> (line <span class="line-number">39</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method used to store a new instance of an improved argument</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			saveNewArg
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodshowPreviousVersionsOfArg" id="showPreviousVersionsOfArg"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">showPreviousVersionsOfArg</span> (line <span class="line-number">366</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method that returns all the versions of an improved argument</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Exception</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			showPreviousVersionsOfArg
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$origImpArgID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$origImpArgID</span>			</li>
				</ul>
		
			
	</div>
<a name="methodunsetArg" id="unsetArg"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">unsetArg</span> (line <span class="line-number">308</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method used when a user wants to delete an improved argument</p>
<p class="description"><p>The field state of the table is updated to the value 0  The method does that to all the instances of the improved argument, including the original improved argument</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			unsetArg
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$origArgID</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$origArgID</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Fri, 22 Feb 2013 05:33:54 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>